<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>修改用户界面</title>
  <link rel="stylesheet" th:href="@{/libs/css/yonghu/updateUser.css}">
</head>
<body>


<form class="box-1" method="post" action="/yonghu/updateUser">
  <h2 class="xiugai">修改用户</h2>
  <input type="hidden" id="listArea" th:value="@{/yonghu/listArea}">
  <input type="hidden" id="listDept" th:value="@{/yonghu/listDept}">
  <input type="hidden" id="getUserInfo" th:value="@{/yonghu/getUserInfo}">

  <input type="hidden" id="id" name="id" th:value="${id}">
  <div class="form-group">
    <label class="col-sm-2 control-label">区域/部门</label>
    <div class="col-sm-10">
      <select id="areaid" name="areaid" onchange="listDeptName()"></select>
      <input id="areaname" name="areaname" type="hidden">
      <select id="deptid" name="deptid" onchange="setDeptName()"></select>

      <input id="did" name="did" type="hidden">
      <input id="deptname" name="deptname" type="hidden">

    </div>
  </div>
  <div class="form-group">
    <label for="usercode" class="col-sm-2 control-label">用户名</label>
    <div class="col-sm-10">
      <input type="text" class="form-control"
             name="usercode" id="usercode">
    </div>
  </div>
  <div class="form-group">
    <label for="username" class="col-sm-2 control-label">姓名</label>
    <div class="col-sm-10">
      <input type="text" class="form-control"
             name="username" id="username">
    </div>
  </div>
  <div class="form-group">
    <label for="password" class="col-sm-2 control-label">密码</label>
    <div class="col-sm-10">
      <input type="text" class="form-control"
             name="password" id="password" value="123456">
    </div>
  </div>
  <div th:text="${msg}"></div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">修改</button>
      <a class="btn btn-default" href="/yonghu/userList">返回</a>
    </div>
  </div>
</form>
</body>
<!--   引入jquery-->
<!--<script th:src="@{/libs/js/jquery/jquery.min.js}"jquery></script>-->
<script src="https://src.axui.cn/src/js/jquery-1.10.2.min.js" type="text/javascript"></script>

<!--    bootstrap样式-->
<link rel="stylesheet" th:href="@{/libs/js/bootstrap-3.4.1-dist/css/bootstrap.min.css}">
<script th:src="@{/libs/js/bootstrap-3.4.1-dist/js/bootstrap.min.js}"></script>
<!--引入js-->
<script th:src="@{/libs/js/yonghu/updateUser.js}" type="text/javascript"></script>

</html>